# -*- coding:utf-8 -*-
import web
import redis

DB_HOST = ''
DB_PORT = 3306
DB_USER = ''
DB_PW = ''
DB_NAME = ''

gdb = web.database(
    dbn='mysql',
    host=DB_HOST,
    port=DB_PORT,
    user=DB_USER,
    pw=DB_PW,
    db=DB_NAME
)

RDS_HOST = '127.0.0.1'
RDS_PORT = 6379
RDS_PW = '123456'

SESSION_EXPIRETIME = 30

grds = redis.Redis(
    host=RDS_HOST,
    port=RDS_PORT,
    password=RDS_PW
)

DEFAULT_SECPASSWORD = '123456'
NEWUSER_DEFAULT_MONEY = 10000

USER_STATUS_NOLMAL = 0
USER_STATUS_FREEZE = 1

# 账号
KEY_PACKAGE = "KEY_PACKAGE_{userid}"
KEY_LOGIN = "KEY_LOGIN_{userid}"
